package com.flyxiang.workflow.domain.vo;

import com.flyxiang.workflow.domain.WfDynamicData;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.flyxiang.common.excel.annotation.ExcelDictFormat;
import com.flyxiang.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Map;


/**
 * 动态表单数据视图对象 wf_dynamic_data
 *
 * @author daojiang
 * @date 2024-11-15
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = WfDynamicData.class)
public class WfDynamicDataVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     * 表单数据
     */
    private Map<String,Object> formData;

    /**
     * 业务状态（数据字典值）
     */
    @ExcelProperty(value = "业务状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "数=据字典值")
    private String status;


}
